Skip to content

Upgrade Hugo 0.69.0 → 0.157.0#201

Open
davidemerson wants to merge 1 commit into
nycmeshnet:masterfrom
davidemerson:hugo-upgrade
Open

Upgrade Hugo 0.69.0 → 0.157.0#201
davidemerson wants to merge 1 commit into
nycmeshnet:masterfrom
davidemerson:hugo-upgrade

Conversation

@davidemerson
Copy link
Copy Markdown
Contributor

@davidemerson davidemerson commented Mar 18, 2026

It seems like a good idea to get Hugo up to date, this is like circa 2020 Hugo with six years of security vulns and whatnot missing.

A few breaking changes needed fixing:

  • config.toml: Remove deprecated pygmentsCodefences settings (superseded by goldmark) and [markup.blackFriday] section (renderer removed)
  • netlify.toml: Pin Hugo 0.157.0 in all three deploy contexts
  • baseof.html: Replace .Scratch / isset (removed ~0.120) with simple variable assignment for page title logic
  • list.html, press/list.html, presentations/list.html: .Data.Pages >> .Pages
  • Delete 3 unused partials (get-involved-action.html, get-involved.html, docs/sidebar.html) that reference removed APIs

I did a local build with these changes, no errors, no warnings, 231 pages (210 EN / 14 ES / 7 ZH(??!)). Smoke tested all major page types (homepage, blog, press, presentations, volunteer, donate, stats, map, i18n, 404) — all return 200. Title logic verified: homepage "NYC Mesh", subpages >> "Page - NYC Mesh".

Deploying

Once the PR is merged to master, Netlify will automatically build using Hugo 0.157.0. No manual server-side action is required, the version pin in netlify.toml is all Netlify needs.

If you are building locally, ensure your local Hugo is >= 0.157.0

Post-deploy verification

After the Netlify deploy completes, spot-check these pages:

  1. (/) — hero renders, title is "NYC Mesh"
  2. (/blog/) — post list renders with titles and dates
  3. (/press/) — article list renders with publication, date, title, quote
  4. (/presentations/) — thumbnails and links render
  5. (/volunteer/) — hero, cards, FAQ accordion, calendar embed
  6. (/donate/) — correct dollar amount, Stripe script tag present
  7. (/stats/) — active tab highlighting, images from db.nycmesh.net load
  8. (/es/support/) — renders in Spanish
  9. from source on any page, confirm <style> tags in <head> (CSS inlining via safeCSS) and OpenGraph/Twitter Card meta tags

Rollback

Git revert

git revert <commit-sha>
git push origin master

This reverts both the template fixes and the version pin, returning the site to Hugo 0.69.0.

Breaking changes fixed:
- config.toml: Remove deprecated pygmentsCodefences settings (superseded
  by goldmark) and [markup.blackFriday] section (renderer removed)
- netlify.toml: Pin Hugo 0.157.0 in all three deploy contexts
- baseof.html: Replace .Scratch / isset (removed ~0.120) with simple
  variable assignment for page title logic
- list.html, press/list.html, presentations/list.html: .Data.Pages → .Pages
- Delete 3 unused partials (get-involved-action.html, get-involved.html,
  docs/sidebar.html) that reference removed APIs

Local build: zero errors, zero warnings, 231 pages (210 EN / 14 ES / 7 ZH).
Smoke tested all major page types (homepage, blog, press, presentations,
volunteer, donate, stats, map, i18n, 404) — all return 200.
Title logic verified: homepage → "NYC Mesh", subpages → "Page - NYC Mesh".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant